package com.zhou.service;

import com.zhou.entity.PageResult;
import com.zhou.entity.QueryPageBean;
import com.zhou.entity.Result;
import com.zhou.pojo.Role;

import java.util.List;
import java.util.Map;

public interface RoleService {
    List<Role> findAll();

    Result add(Role role, Integer[] permissionIds, Integer[] menuIds);

    Map findByIdWithAllPermission(Integer id);

    void edit(Role role, Integer[] permissionIds, Integer[] menuIds);

    Result deleteById(Integer id);

    PageResult findByPage(QueryPageBean queryPageBean);
}
